<template>
  <page-lr>
    <template #contentLeft>
      hello   
    </template>
    <template #contentRight>
      hello
    </template>
  </page-lr>
</template>

<script setup lang="ts">
let obj = {
  pageApi: '/api/admin/param/page',
  deleteApi: '/api/admin/param',
  primaryKey: 'publicId',
  searchFixed:{},
}
import { useList } from '/@/assets/compositionFn/list';
let { dlgAddEdit, tableData, pageData, optionDataStore, getList, sizeChange, selectCheckbox, setDefaultCheckbox, handleOperate, handleDelete, handleExport } = useList(obj);
const SearchForm = defineAsyncComponent(() => import('./components/SearchForm.vue'));
const AddEdit = defineAsyncComponent(() => import('./components/AddEdit.vue'));
const ShowDetail = defineAsyncComponent(() => import('./components/ShowDetail.vue'));
const {proxy} :any = getCurrentInstance() as ComponentInternalInstance;
const refSearchForm = ref();
const refTable = ref();
const refAddEdit = ref();
const refShowDetail = ref();
const optionData:any = reactive({});

provide('optionData', optionData);
const getInitData = async ()=>{
  let dictType = await optionDataStore.getDictList('dict_type');
  let statusType = await optionDataStore.getDictList('status_type');
  optionData.dictType = proxy.$util.transformArray(dictType);
  optionData.statusType = proxy.$util.transformArray(statusType);
};
onMounted(async () => {
  tableData.initIds = ['2','3'];
  await getInitData();
  getList().then(res => {
    setDefaultCheckbox(refTable);
  });
  
})
</script>

<style>

</style>